<template>
  <el-container>
    <el-header>
      <topNavbar :path="path" :title="title" :content="content"></topNavbar>
    </el-header>

    <el-main>
      <orderDetail :is_company="is_company" ref="matter" :order_id="id">


      </orderDetail>
    </el-main>
  </el-container>
</template>

<script>
    import topNavbar from "../common/topNavbar";
    import orderDetail from "../common/orderDetail";
    import {mapActions} from 'vuex'
    export default {
        name: "purchaseDetail",
        data(){
            return {
                path: '/purchase',
                id: 0,
                content: '',
                is_company:1,
                title: '采购',
            }
        },
        components: {topNavbar,orderDetail},
        methods: {
            ...mapActions("Order",['getOrderActions']),
            setQuery(){
                this.content = this.$route.query.name
                this.id = this.$route.query.id
            },
        },

        mounted() {
            this.setQuery()
        }
    }
</script>

<style scoped>

</style>
